#ifndef BULLET_H
#define BULLET_H

#include <QGraphicsPixmapItem>
#include<QDebug>


class Bullet : public QGraphicsPixmapItem
{

public:
    //子弹类型
    enum BulletType
    {
        BT_Player,//我方
        BT_Enemy//敌方
    };

    explicit Bullet(QObject *parent = nullptr);
    Bullet(QPoint _pos,QPixmap _pixmap,int _type);

    //移动函数
    void BulletMove(QPoint _dir = QPoint(0,-1));

    int mBulletType;
    int mSpeed;




};

#endif // BULLET_H
